﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title></title>
    <script src="/js/scenario1.js"></script>
</head>

<body class="win-type-body">
    <div data-win-control="SdkSample.ScenarioInput">
        <p>
            Standards-based Web Workers are supported for multithreaded JavaScript apps. Web Workers can improve the responsiveness of your app by removing tasks from the UI thread. Web Workers can use the postMessage function to communicate with the UI thread.
        </p>
        <p>
            This example uses two Web Workers to calculate prime numbers. Even though this task is CPU intensive, the UI remains responsive because the calculations run inside the Web Workers.
        </p>
        <button id="startPrimes" class="action win-button">
            Calculate Primes</button>
        <br>
        <br>
    </div>
    <div data-win-control="SdkSample.ScenarioOutput">
        <div class="item" id="scenario1Output">
            <h3 class="win-type-title">Prime Numbers Found: <span id="primesCount">0</span></h3>
        </div>
    </div>
</body>

</html>